/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __PQ_Unit_H__
#define __PQ_Unit_H__

#include "PQPrerequisites.h"

namespace PQServiceLogin
{
	struct WorldLocation
	{
		uint32 mapid;
		float coord_x;
		float coord_y;
		float coord_z;
		float orientation;

		explicit WorldLocation(uint32 mapid = 0, float x = 0, float y = 0, float z = 0, float o = 0)
			: mapid(mapid), coord_x(x), coord_y(y), coord_z(z), orientation(o) {}
		WorldLocation(const WorldLocation &loc)
			: mapid(loc.mapid), coord_x(loc.coord_x), coord_y(loc.coord_y), coord_z(loc.coord_z), orientation(loc.orientation) {}
	};

	enum DeathState
	{
		Death_State_Alive=0,
		Death_State_Just_Died=1,
		Death_State_Corpse=2,
		Death_State_Dead=3,
		Death_State_Just_Alived=4,
		Death_State_Falling=5
	};

	class Unit
	{
	protected:
		DeathState _deathState;
	};
}

#endif
